﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using WPF_QC.DataService;
using System.Windows.Input;



namespace WPF_QC.QA_ViewModel
{
    public class RunningMachinesStatusViewModel : ViewModelBase, IPageViewModel
    {

        private DataService.DataServiceClient serviceClient = new DataService.DataServiceClient();


        //public RunningMachinesStatusViewModel()
        //{
        //    refreshData();
        //}


        public string Name
        {
            get { return "RunningMachinesStatus"; }
        }

        /*
                private void refreshData()
                {
                    this.serviceClient.GetScheduleDataCompleted += (s, e) =>
                    {
                        this.SchedData = e.Result;
                    };
                    this.serviceClient.GetScheduleDataAsync();
                }

        
        private IEnumerable<MachineSchedule> _schedData;
        public IEnumerable<MachineSchedule> SchedData
        {
            get
            {
                return this._schedData;
            }
            set
            {
                this._schedData = value;
                RaisePropertyChanged("SchedData");
            }
        }
        */


    }
}
